
/*******************************************************
*  Team name: FTPMP
*  Class involve: RoleAssigner
*  Version, Author, History of modification:
*  Ver 1.0, Fred,
*  -add RoleAssigner constructor, setPlayerNo, assignRole, inputRole,
*   
*******************************************************/

package control;

import control.BoardEngine;


public class RoleAssigner 
{
	int countR;
	int playerNo;
	String[] roleList;
	BoardEngine BE;
	public RoleAssigner(BoardEngine BE)
	{
		this.countR=0;
		this.BE=BE;
	}
	public void setPlayerNo(int playerNo)
	{
		this.playerNo=playerNo;
		this.roleList=new String[playerNo];
	}
	public void assignRole()
	{
		BE.assignRole(this.roleList);
	}

	public void inputRole(String role)
	{
		
		this.roleList[countR]=role;
		countR++;
		System.out.println(role+" "+roleList.length);
	}
	
	public int getCount()
	{
		return countR;
	}
}
